public class LazySingLeton {
     private String Name;
    public void setName(String name){
        Name=name;
    }
    public String ShowName(){
        return Name;
    }
 private static LazySingLeton singleton = null; 

    public static synchronized LazySingLeton getInstance(){

             if(singleton == null) {                        

                 singleton = new LazySingLeton ();  

             }
             return singleton ;

     }
}
